package techLayer;
/* 
 * Interface for the games network part.
 * The interface has both createServer and connect, this
 * means that a player can act both as a server and a client,
 * (not at the same time though).
 * 
 * After the connection is made, both are treated the same way
 * and who's server and who's client won't  be relevant anymore.
 * This because the gameinstance manages the current game locally, the only
 * thing it does at that point is sending and recieving moves.
 * 
 * The design uses a Peer-to-peer aproach.
 */
public interface netFace {
	void createServer(int port);
	void connect(String hostName, int port);
	void sendMove(int column);
	int recieveMove();
	void closeConnection();
	void sendName(String name);
	String recieveName();
}